localStorageEncryption Event

Arguments

eobject

An object that contains the following properties:

dataobject

The data being saved to local storage.

Description

Fires before data are written to Local Storage.

Discussion

The localStorageEncryption event can be used to encrypt data before it is saved to local storage. The data will be available in the e.data variable. JavaScript code can encrypt the data and set the e.data property to the encrypted value.

If you encrypt data before it is stored in local storage, you must define a decryption function called in the List's localStorageDecryption event to decrypt the data when it is read from local storage.

See Also